'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/device/log/create', controller.iotDevice.createLog);
  router.post('/api/linkage/find/many', controller.linkage.findMany);
  router.post('/api/data/power/edit', controller.power.removeDu);
  router.post('/api/data/power/time/copy', controller.power.copyTime);
  require('./router/tenant')(app);
  require('./router/role')(app);
  require('./router/user')(app);
  require('./router/tree')(app);
  require('./router/iotDevice')(app);
  require('./router/power')(app);
  require('./router/assess')(app);
  require('./router/meeting')(app);
};
